home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 March / Disc 1 / PCU030201.iso / ads / files / main.swf / scripts / DefineButton2_150 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2001-10-25  |  659 b   |  32 lines

  1. on(release){
  2.    set("_level0/:HiLite","Text_" add _name.substr(8,1));
  3.    set("_level0/:Pressed","_level0/Menu/" add _name.substr(8,1));
  4.    tellTarget("../Text_" add _name.substr(8,1))
  5.    {
  6.       gotoAndStop("On");
  7.    }
  8.    tellTarget("../../")
  9.    {
  10.       play();
  11.    }
  12.    tellTarget("/menu/S")
  13.    {
  14.       if(_currentframe == 10)
  15.       {
  16.          gotoAndPlay(20 - _currentframe);
  17.       }
  18.       tellTarget("/menu/T")
  19.       {
  20.          if(_currentframe == 10)
  21.          {
  22.             gotoAndPlay(20 - _currentframe);
  23.          }
  24.       }
  25.    }
  26.    unloadMovie("/txtboxes");
  27.    tellTarget("/computer")
  28.    {
  29.       gotoAndStop("end");
  30.    }
  31. }
  32.